import request from "@/utils/request";
const app = "/app";

// 查询应用列表
export function listApp(data) {
  return request({
    url: `${app}/listApp`,
    method: "post",
    data: data,
  });
}

// 新增应用
export function insertApp(data) {
  return request({
    url: `${app}/insertApp`,
    method: "post",
    data: data,
  });
}

// 修改应用
export function updateApp(data) {
  return request({
    url: `${app}/updateApp`,
    method: "post",
    data: data,
  });
}

// 删除应用
export function deleteApp(data) {
  return request({
    url: `${app}/deleteApp`,
    method: "post",
    data: data,
  });
}

// 查询应用对应接口列表
export function listAppInterface(data) {
  return request({
    url: `${app}/listAppInterface`,
    method: "post",
    data: data,
  });
}

// 新增应用接口关联
export function insertAppInterface(data) {
  return request({
    url: `${app}/insertAppInterface`,
    method: "post",
    data: data,
  });
}

// 删除应用接口关联
export function deleteAppInterface(data) {
  return request({
    url: `${app}/deleteAppInterface`,
    method: "post",
    data: data,
  });
}
